<?php
class HomesController extends AppController{
	
	function index(){
		$this->set("home", "This is home page");
	}
	
	function menu(){
		if ($this->request->is('post')) {
			if ($this->Post->save($this->request->data)) {
				$this->Session->setFlash('Your post has been saved.');
				$this->redirect(array('action' => 'index'));
			}
		}
	}
}
?>